<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>猫狗日记</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="../static/css/layui.css" rel="stylesheet">
  <link rel="shortcut icon" href="../static/images/favicon.png">
  <style>
    .gender {
      display: inline-block;
      height: 32px;
      padding: 0 20px;
      border: 1px solid #b9b9b9;
      background-color: #f2f2f2;
      line-height: 32px;
      border-radius: 5px;
    }

    .gender-selected {
      border: 1px solid #f84a4a;
    }

    .number:active {
      border-color: #f84a4a;
      outline: #f84a4a;
    }
  </style>

</head>

<body>
  <div class="layui-layout layui-layout-admin">
    <div class="layui-header">
      <div class="layui-logo layui-hide-xs layui-bg-black">logo 区域</div>
      <!-- 头部区域（可配合layui 已有的水平导航） -->
      <ul class="layui-nav layui-layout-left">
        <!-- 移动端显示 -->
        <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
          <i class="layui-icon layui-icon-spread-left"></i>
        </li>
        <li class="layui-nav-item layui-hide-xs"><a href="../index.html">首页</a></li>
        <li class="layui-nav-item layui-hide-xs"><a href="../about-pet.html">关于宠物</a></li>
        <li class="layui-nav-item layui-hide-xs"><a href="../pet-cat-dog.html">宠物猫狗</a></li>
        <li class="layui-nav-item layui-hide-xs"><a href="../pet-news.html">宠物新闻</a></li>
        <li class="layui-nav-item layui-hide-xs"><a href="../buy-pet/index.html">宠物购买</a></li>
        <li class="layui-nav-item layui-hide-xs"><a href="../pet-snacks.html">宠物零食</a></li>
      </ul>
      <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item layui-hide layui-show-sm-inline-block">
          <a href="javascript:;">
            <img src="../static/images/user/avatar.jpeg" class="layui-nav-img">
            纳美
          </a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;">个人信息</a></dd>
            <dd><a href="javascript:;">退出</a></dd>
          </dl>
        </li>
      </ul>
    </div>

    <div class="layui-body" style="left: 0;">
      <div class="layui-container" style="margin-top: 40px;">

        <div class="layui-row layui-col-space25">
          <div class="layui-col-md4 layui-col-offset1">
            <!-- 图片区域 -->
            <img src="../static/images/but-pet/布偶猫.webp" style="display: inline-block; width: 100%;">
          </div>

          <div class="layui-col-md6">
            <!-- 信息区域 -->
            <div>
              <div class="layui-font-22" style="font-weight: bold;">布偶猫</div>
              <div class="layui-font-red" style="margin-top: 12px;">

                <span style="padding-right: 6px;">血统纯正</span>
                <span style="padding-right: 6px;">疫苗齐全</span>
                <span style="padding-right: 6px;">价格实惠</span>

              </div>
              <div class="layui-bg-orange" style="height: 58px; margin-top: 12px;">
                <span style="line-height: 58px;" class="layui-font-12">价格</span>
                <span style="line-height: 58px;" class="layui-font-red layui-font-12">￥</span>
                <span style="line-height: 58px;" class="layui-font-red layui-font-22">1,280.00</span>
                <span style="line-height: 58px; text-decoration-line: line-through;" class="layui-font-gray">1500</span>
              </div>
              <div class="layui-font-gray" style="margin-top: 12px;">
                性别
              </div>
              <div>
                <div class="gender ">公</div>
                <div class="gender gender-selected" style="margin-left: 6px;">母</div>
              </div>

              <div class="layui-font-gray" style="margin-top: 12px;">
                颜色
              </div>
              <div>
                <div class="gender gender-selected">白色</div>
                <div class="gender" style="margin-left: 6px;">灰色</div>
              </div>

              <div class="layui-font-gray" style="margin-top: 12px;">
                年龄
              </div>
              <div>
                <div class="gender gender-selected">幼年大（45日龄-12月龄）</div>
              </div>
              <div class="layui-row" style="margin-top: 16px;">
                <div class="layui-col-md2">
                  <div class="layui-input-wrap number" style="width: 80px;">
                    <div class="layui-input-prefix">
                      <i class="layui-icon layui-icon-addition"></i>
                    </div>
                    <input type="text" class="layui-input" value="1">
                    <div class="layui-input-suffix">
                      <i class="layui-icon layui-icon-subtraction"></i>
                    </div>
                  </div>
                </div>
                <div class="layui-col-md2" style="text-align: center;">
                  <button type="button" class="layui-btn layui-btn-sm layui-btn-primary layui-btn-lg"
                    style="border: 1px solid #f84a4a; color: #f84a4a; height: 38px;">
                    立即购买
                  </button>
                </div>
                <div class="layui-col-md2" style="text-align: center;">
                  <button type="button" class="layui-btn layui-btn-sm layui-btn-danger layui-btn-lg"
                    style="height: 38px;">
                    加入购物车
                  </button>
                </div>
              </div>

              <div class="layui-font-gray" style="margin-top: 16px;">
                <span>分类： 挑选猫咪</span>
                <span>
                  标签： 布偶猫价格, 布偶猫价格多少钱一只, 布偶猫多少钱一只纯种
                </span>
              </div>
            </div>
          </div>
        </div>


        <div class="layui-tab" lay-filter="test-handle">
          <ul class="layui-tab-title">
            <li class="layui-this" lay-id="11">描述</li>
            <li lay-id="22">其他信息</li>
            <li lay-id="33">用户评价(99+)</li>
          </ul>
          <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
              <img src="../static/images/but-pet/描述1.webp" />
              <img src="../static/images/but-pet/描述2.webp" />
              <img src="../static/images/but-pet/描述3.webp" />
              <img src="../static/images/but-pet/描述4.webp" />
              <img src="../static/images/but-pet/描述5.webp" />
            </div>
            <div class="layui-tab-item">
              <table class="layui-table" lay-even>
                <colgroup>
                  <col width="40">
                  <col width="150">
                </colgroup>
                <tbody>
                  <tr>
                    <td style="font-weight: bold;">性别</td>
                    <td>公，母</td>
                  </tr>
                  <tr>
                    <td style="font-weight: bold;">颜色</td>
                    <td>白色</td>
                  </tr>
                  <tr>
                    <td style="font-weight: bold;">年龄</td>
                    <td>幼年犬(45日龄-12月龄)</td>
                  </tr>
                  <tr>
                    <td style="font-weight: bold;">品种</td>
                    <td>布偶猫</td>
                  </tr>
                  <tr>
                    <td style="font-weight: bold;">毛长</td>
                    <td>短毛</td>
                  </tr>
                  <tr>
                    <td style="font-weight: bold;">血统信息</td>
                    <td>有血统证书</td>
                  </tr>
                  <tr>
                    <td style="font-weight: bold;">免疫驱虫</td>
                    <td>已做完</td>
                  </tr>
                </tbody>
              </table>
            </div>
            <div class="layui-tab-item">
              <textarea name="" placeholder="留点什么吧~" class="layui-textarea"></textarea>
              <button type="button" class="layui-btn layui-bg-blue" style="margin-top: 6px;">提交</button>

              <div class="layui-timeline" style="margin-top: 12px;">
                <div class="layui-timeline-item">
                  <i class="layui-icon layui-timeline-axis layui-icon-face-smile"></i>
                  <div class="layui-timeline-content layui-text">
                    <h3 class="layui-timeline-title">2024-5-18 16:09:09</h3>
                    <div class="layui-timeline-title">好评~</div>
                  </div>
                </div>
                <div class="layui-timeline-item">
                  <i class="layui-icon layui-timeline-axis layui-icon-water"></i>
                  <div class="layui-timeline-content layui-text">
                    <h3 class="layui-timeline-title">2024-5-14 13:24:01</h3>
                    <div class="layui-timeline-title">超级喜欢</div>
                  </div>
                </div>
                <div class="layui-timeline-item">
                  <i class="layui-icon layui-timeline-axis layui-icon-fire"></i>
                  <div class="layui-timeline-content layui-text">
                    <h3 class="layui-timeline-title">2024-5-13 09:14:33</h3>
                    <div class="layui-timeline-title">萌新已到家</div>
                  </div>
                </div>
                <div class="layui-timeline-item">
                  <i class="layui-icon layui-timeline-axis layui-icon-circle"></i>
                  <div class="layui-timeline-content layui-text">
                    <h3 class="layui-timeline-title">2024-5-11 11:15:23</h3>
                    <div class="layui-timeline-title">爱了爱了</div>
                  </div>
                </div>
                <div class="layui-timeline-item">
                  <i class="layui-icon layui-anim layui-anim-rotate layui-anim-loop layui-timeline-axis"></i>
                  <div class="layui-timeline-content layui-text">
                    <h3 class="layui-timeline-title">2024-5-07 18:03:17</h3>
                    <div class="layui-timeline-title">好喜欢。</div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div style="text-align: center; padding: 20px;" class="layui-font-gray">
        cat and dog dairy &copy; 2024 created by Wzy
      </div>
    </div>
  </div>

  </div>

  <script src="../static/layui.js"></script>
  <script>

    //侧边固定栏
    layui.use(function () {
      var util = layui.util;
      // 自定义固定条
      util.fixbar({
        bars: [
          {
            // 定义可显示的 bar 列表信息 -- v2.8.0 新增
            type: "share",
            icon: "layui-icon-share",
            style: "background-color: #16b777;",
            content: "分享",
          },
          {
            type: "help",
            icon: "layui-icon-help",
            content: "帮助",
          },
          {
            type: "cart",
            icon: "layui-icon-cart",
            style: "background-color: #FF5722;",
            content: "购物车",
          },
        ],
        on: {
          mouseenter: function (type) {
            const typesMap = {
              share: "分享给朋友",
              help: "帮助",
              cart: "购物车",
            }
            layer.tips(typesMap[type], this, {
              tips: 4,
              fixed: true,
            });
          },
          mouseleave: function (type) {
            layer.closeAll("tips");
          },
        },
        // 点击事件
        click: function (type) {
          console.log(this, type);
          // layer.msg(type);
        },
      });
    });

  </script>
</body>

</html>